import service from '@/utils/request'
// =================宣贯计划===========================
export const govPromotePlanListApi = (dataForm: any) => {
	return service.get('/govInfo/promotePlan', { params: dataForm })
}

export const govPromotePlanDetailApi = (dataForm: any) => {
	return service.get('/govInfo/promotePlan/detail/' + dataForm)
}

export const govPromotePlanAddApi = (dataForm: any) => {
	return service.post('/govInfo/promotePlan/add', dataForm)
}

export const govPromotePlanEditApi = (id: String, dataForm: any) => {
	return service.post(`/govInfo/promotePlan/edit/${id}`, dataForm)
}

export const govPromotePlanDelApi = (dataForm: any) => {
	return service.get(`/govInfo/promotePlan/delete/${dataForm}`)
}

export const govPromotePlanGbApi = (dataForm: any) => {
	return service.post('/govInfo/promotePlan/publish', dataForm)
}

export const govPromotePlanQxfbApi = (dataForm: any) => {
	return service.post('/govInfo/promotePlan/unPublish', dataForm)
}

// =================通知发布===========================
export const govNoticePublishListApi = (dataForm: any) => {
	return service.get('/govInfo/noticePublish', { params: dataForm })
}

export const govNoticePublishDetailApi = (dataForm: any) => {
	return service.get('/govInfo/noticePublish/detail/' + dataForm)
}

export const govNoticePublishAddApi = (dataForm: any) => {
	return service.post('/govInfo/noticePublish/add', dataForm)
}

export const govNoticePublishEditApi = (id: String, dataForm: any) => {
	return service.post(`/govInfo/noticePublish/edit/${id}`, dataForm)
}

export const govNoticePublishDelApi = (dataForm: any) => {
	return service.get(`/govInfo/noticePublish/delete/${dataForm}`)
}

export const govNoticePublishGbApi = (dataForm: any) => {
	return service.post('/govInfo/noticePublish/publish', dataForm)
}

export const govNoticePublishQxfbApi = (dataForm: any) => {
	return service.post('/govInfo/noticePublish/unpublish', dataForm)
}

// =================政策文件===========================
export const govpolicyDocListApi = (dataForm: any) => {
	return service.get('/govInfo/policyDoc', { params: dataForm })
}

export const govpolicyDocDetailApi = (dataForm: any) => {
	return service.get('/govInfo/policyDoc/detail/' + dataForm)
}

export const govpolicyDocAddApi = (dataForm: any) => {
	return service.post('/govInfo/policyDoc/add', dataForm)
}

export const govpolicyDocEditApi = (id: String, dataForm: any) => {
	return service.post(`/govInfo/policyDoc/edit/${id}`, dataForm)
}

export const govpolicyDocDelApi = (dataForm: any) => {
	return service.get(`/govInfo/policyDoc/delete/${dataForm}`)
}

export const govpolicyDocGbApi = (dataForm: any) => {
	return service.post('/govInfo/policyDoc/publish', dataForm)
}

export const govpolicyDocQxfbApi = (dataForm: any) => {
	return service.post('/govInfo/policyDoc/unpublish', dataForm)
}

// =================强制性文件===========================
export const qiangzhilistApi = (dataForm: any) => {
	return service.post('/mandatoryProvision/list', dataForm)
}
export const qiangzhiaddApi = (dataForm: any) => {
	return service.post('/mandatoryProvision/add', dataForm)
}

export const qiangzhieditApi = (dataForm: any) => {
	return service.post('/mandatoryProvision/edit', dataForm)
}

export const qiangzhideleteApi = (id: any) => {
	return service.get(`/mandatoryProvision/delete/${id}`)
}

export const qiangzhipublishApi = (dataForm: any) => {
	return service.post('/mandatoryProvision/publish', dataForm)
}

export const qiangzhiunPublishApi = (dataForm: any) => {
	return service.post('/mandatoryProvision/unPublish', dataForm)
}

export const qiangzhiunexportApi = (dataForm: any) => {
	return service.post('/mandatoryProvision/export', dataForm)
}
export const qiangzhiunpublishApi = (dataForm: any) => {
	return service.post('/mandatoryProvision/publish', dataForm)
}

export const qiangzhiununPublishApi = (dataForm: any) => {
	return service.post('/mandatoryProvision/unPublish', dataForm)
}
